package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StuMapper {

    Page<Student> getAllStudents(Integer clazzId, Integer degree, String name);

    void deleteByIds(List<Integer> ids);

    void add(Student student);

    Student getStudentById(Integer id);

    void update(Student student);

    void redScore(Integer id, Integer score);
}
